Hi, I'm new to DXL, but what I'd like to do is, given an object and link module, I'd like to retrieve the full link path as a text string. How do I do this? |
Re: how to retrieve an in-link as a text string? If you use the wizard to build a layout dxl and then examine the script you will see lines similar to following:
linkMod = module l
if (getParentFolder(linkMod) == getParentFolder(current Module)) {
s = name(linkMod)
} else {
s = fullName(linkMod)
}
s = "[" s "]"
disp = disp " " s
|
Re: how to retrieve an in-link as a text string? The string loop is hopeless, it only retrieves the base name of the module. If you use a "LinkRef" loop you should be able to get a handle on the Module at the other end of the LinkRef, then see OurGuest to convert that into a string name. Let me scribble, maybe you can figure it out:
LinkRef lr
ModuleVersion mv
string NameSourceFull
for lr in (newObject <- "/Path/To/Link Module") do
{ mv = sourceVersion(lr)
NameSourceFull = fullName(mv)
}
|